@layout("/common/_layout.html",{title:'主题'}){
<div class="row">
    <main class="col-md-8">
        <article class="post post-1">
            <header class="entry-header">
                <h1 class="entry-title">${blog.title!}</h1>
                <div class="entry-meta">
                    <span class="post-category"><a href="#">${blog.subject!}</a></span>
                    <span class="post-date"><a href="#"><time class="entry-date">${blog.createTime!,"yyyy-MM-dd HH:mm:ss"}</time></a></span>
                    <span class="post-author"><a href="#">${blog.createBy!}</a></span>
                    <span class="comments-link"><a href="#">4 评论</a></span>
                    <span class="views-count"><a href="#">588 阅读</a></span>
                </div>
            </header>
            <div class="entry-content clearfix">
                ${blog.content!}
            </div>
        </article>
        <section class="comment-area" id="comment-area">
            <hr>
            <h3>发表评论</h3>
            <form action="${ctxPath}/discussEditor" method="post" class="comment-form">
                <div class="row">
                    <input type="hidden" name="blogId" value="${blog.id!}">
                    <div class="col-md-12">
                        <label for="id_name">名字：</label>
                        <input type="text" id="id_name" name="nickname" required>
                    </div>
                    <div class="col-md-12">
                        <label for="id_comment">评论：</label>
                        <textarea name="content" id="id_comment" required></textarea>
                        <button type="submit" class="comment-btn">发表</button>
                    </div>
                </div>    <!-- row -->
            </form>
            <div class="comment-list-panel">
                <h3>评论列表，共 <span>${pageDiscuss.totalRow!'0'}</span> 条评论</h3>
                <ul class="comment-list list-unstyled">
                    @for(discuss in pageDiscuss.list){
                    <li class="comment-item">
                        <span class="nickname">${discuss.nickname!}</span>
                        <time class="submit-date">${discuss.createTime!,'yyyy-MM-dd HH:mm:ss'}</time>
                        <div class="text">${discuss.content!}</div>
                    </li>
                    @}
                </ul>
            </div>
        </section>
    </main>
    @include("/common/_aside.html"){}
</div>
@}